.class Lcom/nemustech/regina/SecretAppSelector$2;
.super Ljava/lang/Object;
.source "SecretAppSelector.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/SecretAppSelector;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/SecretAppSelector;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/SecretAppSelector;)V
    .locals 0
    .parameter

    .prologue
    .line 155
    iput-object p1, p0, Lcom/nemustech/regina/SecretAppSelector$2;->this$0:Lcom/nemustech/regina/SecretAppSelector;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 7
    .parameter "v"

    .prologue
    .line 161
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 162
    .local v0, addList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/content/ComponentName;>;"
    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    .line 163
    .local v4, removeList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/content/ComponentName;>;"
    const/4 v2, 0x0

    .local v2, i:I
    :goto_0
    iget-object v6, p0, Lcom/nemustech/regina/SecretAppSelector$2;->this$0:Lcom/nemustech/regina/SecretAppSelector;

    invoke-static {v6}, Lcom/nemustech/regina/SecretAppSelector;->access$100(Lcom/nemustech/regina/SecretAppSelector;)Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;

    move-result-object v6

    invoke-virtual {v6}, Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;->getCount()I

    move-result v6

    if-ge v2, v6, :cond_2

    .line 164
    iget-object v6, p0, Lcom/nemustech/regina/SecretAppSelector$2;->this$0:Lcom/nemustech/regina/SecretAppSelector;

    invoke-static {v6}, Lcom/nemustech/regina/SecretAppSelector;->access$100(Lcom/nemustech/regina/SecretAppSelector;)Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;

    move-result-object v6

    invoke-virtual {v6, v2}, Lcom/nemustech/regina/SecretAppSelector$SecretAppAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;

    .line 165
    .local v5, set:Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;
    invoke-virtual {v5}, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;->isHidden()Z

    move-result v1

    .line 166
    .local v1, checked:Z
    iget-object v6, p0, Lcom/nemustech/regina/SecretAppSelector$2;->this$0:Lcom/nemustech/regina/SecretAppSelector;

    invoke-static {v6}, Lcom/nemustech/regina/SecretAppSelector;->access$200(Lcom/nemustech/regina/SecretAppSelector;)[Z

    move-result-object v6

    aget-boolean v6, v6, v2

    if-eq v1, v6, :cond_0

    .line 167
    if-eqz v1, :cond_1

    .line 168
    invoke-virtual {v5}, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;->getComponentName()Landroid/content/ComponentName;

    move-result-object v6

    invoke-virtual {v0, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 163
    :cond_0
    :goto_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 170
    :cond_1
    invoke-virtual {v5}, Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;->getComponentName()Landroid/content/ComponentName;

    move-result-object v6

    invoke-virtual {v4, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 177
    .end local v1           #checked:Z
    .end local v5           #set:Lcom/nemustech/regina/SecretAppSelector$SecretAppDataSet;
    :cond_2
    new-instance v3, Landroid/content/Intent;

    const-string v6, "ACTION_SET_SECRET_APPLIST"

    invoke-direct {v3, v6}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 178
    .local v3, intent:Landroid/content/Intent;
    const-string v6, "AddComponentNameList"

    invoke-virtual {v3, v6, v0}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;

    .line 179
    const-string v6, "RemoveComponentNameList"

    invoke-virtual {v3, v6, v4}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;

    .line 180
    iget-object v6, p0, Lcom/nemustech/regina/SecretAppSelector$2;->this$0:Lcom/nemustech/regina/SecretAppSelector;

    invoke-virtual {v6, v3}, Lcom/nemustech/regina/SecretAppSelector;->sendBroadcast(Landroid/content/Intent;)V

    .line 181
    iget-object v6, p0, Lcom/nemustech/regina/SecretAppSelector$2;->this$0:Lcom/nemustech/regina/SecretAppSelector;

    invoke-virtual {v6}, Lcom/nemustech/regina/SecretAppSelector;->finish()V

    .line 182
    return-void
.end method
